package 第七周.homework;
//ReadingMaterial.java
//Represents all kinds of reading material,such as books,fictions,magazines,academic journals
//or school books.
public class ReadingMaterial {
    protected int pages = 1000;
    protected int illustrations = 30;
    //Pages mutator.
    public void setPages(int numPages)
    {
        pages = numPages;
    }
    //Pages accessor.
    public int getPages()
    {
        return pages;
    }
    //illustrations mutator.
    public void setIllustrations(int illustrations)
    {
        illustrations=illustrations;
    }
    //illustrations accessor.
    public int getIllustrations()
    {
        return illustrations;
    }
}
